//
//  UIScrollView+NEDNoData.h
//  HonourJJ
//
//  Created byNED003 on 2018/7/27.
//  Copyright © 2018年 Honour_iOS. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <DZNEmptyDataSet/UIScrollView+EmptyDataSet.h>

NS_ASSUME_NONNULL_BEGIN

@class NEDDZNEmptyDelegate;
/** 无数据提醒*/
@interface UIScrollView (NEDNoData)

@property (retain, nonatomic) NEDDZNEmptyDelegate * _Nullable emptyDelegate;

//默认 贴图 nodata_n
- (void)emptyConfig:(void(^ _Nullable)(NEDDZNEmptyDelegate * delegate))configBlock;
- (void)emptyBtnConfig:(void (^ _Nullable)(UIButton * btn))btnConfig btnClickBlock:(void(^_Nullable)(void))btnClickBlock;

- (void)reloadEmpty;

@end








@interface NEDDZNEmptyDelegate : NSObject<DZNEmptyDataSetSource,DZNEmptyDataSetDelegate>

/*image*/
@property (nonatomic,copy) NSString * _Nullable imageUrlString;

/*title*/
@property (nonatomic,strong) NSAttributedString *attrTitle;
@property (nonatomic,strong) NSString *title;
@property (nonatomic,strong) UIFont   *titleFont;
@property (nonatomic,strong) UIColor  *titleColor;

/*subTitle*/
@property (nonatomic,strong) NSString *subTitle;
@property (nonatomic,strong) UIFont   *subTitleFont;
@property (nonatomic,strong) UIColor  *subTitleColor;

@property (nonatomic,strong) UIColor  * backgroundColor;

///*UIButton*/
//@property (nonatomic,strong) NSString *buttonTitle;
//@property (nonatomic,strong) UIColor  *buttonColor;/* 字体颜色 */
//@property (nonatomic,strong) UIFont   *buttonFont;
//@property (nonatomic,strong) NSString *buttonBgImageName;/* 背景图 */
//@property (nonatomic,strong) UIColor *buttonBgColor;/* 背景图 */
//@property (nonatomic,assign) UIEdgeInsets rectInsets;
//@property (nonatomic,assign) UIEdgeInsets capInsets;

/** customView*/
@property (nonatomic,strong) UIView   *customView;

/*vertical*/
@property (nonatomic,assign) CGFloat   verticalOffset;

/* elements间距 */
@property (nonatomic,assign) CGFloat   spaceHeight;

////手动控制
//@property (nonatomic, retain) NSNumber * shouldShowEmpty;

/*actionBlock*/
@property (nonatomic,copy) void (^_Nullable clickEmptyViewBlock)(void);
@property (nonatomic,copy) void (^_Nullable clickEmptyBtnBlock)(void);



/** 无网络提示的标题*/
@property (retain, nonatomic) NSAttributedString * noNetworkAttTilte;
/** 无网络提示的副标题*/
@property (retain, nonatomic) NSAttributedString * noNetworkAttSubTilte;
/** 无网络提示的按钮标题*/
@property (retain, nonatomic) NSAttributedString * noNetworkAttBtnTilte;
/** 无网络提示点击 重试网络*/
@property (nonatomic,copy) void (^_Nullable noNetworkClickEmptyViewBlock)(void);
/** 无网络提示点击 重试网络*/
@property (nonatomic,copy) void (^_Nullable noNetworkClickEmptyBtnCBlock)(void);

@end


NS_ASSUME_NONNULL_END
